package cn.ztr.familyalbum.service;

import cn.ztr.familyalbum.common.CommonResult;
import cn.ztr.familyalbum.dto.GrowthAlbumTemplateDto;
import cn.ztr.familyalbum.entity.GrowthAlbumTemplate;
import cn.ztr.familyalbum.vo.TemplateDictionaryVo;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2020-05-29
 */
public interface IGrowthAlbumTemplateService extends IService<GrowthAlbumTemplate> {
    /**
     * 模板查询
     * @param template
     * @return
     */
    List<TemplateDictionaryVo> queryTemplateList(GrowthAlbumTemplateDto template);

    /**
     * 点击审核，回显数据
     * @param id
     * @return
     */
    TemplateDictionaryVo auditTemplate(Integer id);

    /**
     *
     * @param id
     * @param state
     * @return
     */
    int completeAudit(Integer id, Integer state);

}
